package com.hnu.store.entity;

public class SearchRecord extends BaseEntity{
  private Integer id;
  private String time;
  private String searchContent;
  private Integer userId;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getTime() {
    return time;
  }

  public void setTime(String time) {
    this.time = time;
  }

  public String getSearchContent() {
    return searchContent;
  }

  public void setSearchContent(String searchContent) {
    this.searchContent = searchContent;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public SearchRecord() {
  }

  public SearchRecord(Integer id, String time, String searchContent, Integer userId) {
    this.id = id;
    this.time = time;
    this.searchContent = searchContent;
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "SearchRecord{" +
        "id=" + id +
        ", time='" + time + '\'' +
        ", searchContent='" + searchContent + '\'' +
        ", userId=" + userId +
        '}';
  }
}
